import request from '@/utils/request'

export function getDevErrorList(data) {
  return request({
    url: '/dev-error/find-all-dev-error',
    method: 'post',
    data
  })
}

export function haveRead(devErrorId) {
  return request({
    url: '/dev-error/have-read',
    method: 'get',
    params: { devErrorId }
  })
}

export function haveProcessed(devErrorId) {
  return request({
    url: '/dev-error/have-processed',
    method: 'get',
    params: { devErrorId }
  })
}

export function getUnreadCount(data) {
  return request({
    url: '/dev-error/find-unread-count',
    method: 'post',
    data

  })
}
